<template>
	<view class="search-container">
		<view class="search" @click="searchHandle">
			<image class="search-icon" src="../../static/langwen/search.png" mode=""></image>
			<view class="search-txt">搜索</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: 'search',
        props: ['to'],
		methods: {
			searchHandle() {
				uni.navigateTo({
					url: this.to
				});
			}
		}
	}
</script>

<style lang="less">
.search-container {
	padding: 20rpx 30rpx;
	background:rgba(90,194,255,1);
	.search {
		display: flex;
		justify-content: center;
		align-items: center;
		height: 60rpx;
		background:rgba(255,255,255,0.26);
		border-radius:40rpx;
		.search-icon {
			width: 30rpx;
			height: 30rpx;
			margin: 0 12rpx 0 0;
		}
		.search-txt {
			font-size:28rpx;
			font-weight:500;
			color:rgba(255,255,255,1);
		}
	}
}
</style>
